package com.training.food.pojo;

import lombok.*;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
@Getter
@Setter
@Data
@NoArgsConstructor
@EqualsAndHashCode
@Entity
@Table( name ="user" )
public class User implements Serializable{
    @Id
    private String username;
    @Column(name="password")
    private String password;
    @Column(name = "phone")
    private String phone;
    @Column(name = "power")
    private char power;
    @Column(name ="noLogin")
    private boolean noLogin;
    @Column(name = "state")
    private char state;
}
